import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/plugins/element'
import '@/plugins/toFixed'
// 引入动态加载路由
import '@/permission'
// 引入Dayjs
import dayjs from "dayjs"
// 引入font-awesome
import 'font-awesome/css/font-awesome.min.css'

import {getRequest, postRequest, putRequest, deleteRequest, postForm} from "@/api/request"

Vue.prototype.$dayjs = dayjs;//可以全局使用dayjs
Vue.prototype.$get = getRequest;//可以全局使用axios
Vue.prototype.$post = postRequest;//可以全局使用axios
Vue.prototype.$put = putRequest;//可以全局使用axios
Vue.prototype.$del = deleteRequest;//可以全局使用axios
Vue.prototype.$postForm = postForm;//可以全局使用axios

Vue.config.productionTip = false

//导入css
import './assets/css/basecsss.css'

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
